package com.example.teesystem.mapper;

import com.example.teesystem.entity.PreCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.teesystem.entity.vo.preCourse.PreCourseGet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
* @author 12510
* @description 针对表【t_pre_course】的数据库操作Mapper
* @createDate 2022-05-27 11:14:08
* @Entity com.example.teesystem.entity.PreCourse
*/
@Mapper
public interface PreCourseMapper extends BaseMapper<PreCourse> {
    @Select("select * from t_pre_course where course_id = #{courseId} and is_delete = 0")
    List<PreCourseGet> getPreCourse(int courseId);
    @Select("select id from t_pre_course where course_id = #{courseId} and is_delete = 0")
    List<Integer> getIds(int courseId);
}




